package com.ruoyi.swap.constants;

/**
 * @program: ChainUp_Monitor_Rear
 * @description:
 * @author: Saumell
 * @create: 2024-08-01 10:03
 **/
public class SwapMonitorConstants {

//    获取所有合约交易对API
    public static final String SWAP_CURRENCY_PAIR_URL = "https://api.toobit.com/api/v1/exchangeInfo";

//    合约通过Websocket订阅K线
    public static final String SWAP_WEBSOCKET_KLINE_URL = "wss://futuresws.f4mes.com/kline-api/ws";

//    合约通过Websocket订阅OrderBook
    public static final String SWAP_WEBSOCKET_ORDERBOOK_URL = "wss://futuresws.f4mes.com/kline-api/ws";
    //    合约通过Websocket订阅OrderBook
    public static final String SWAP_WEBSOCKET_TICKER_URL = "wss://futuresws.f4mes.com/kline-api/ws";
    //    合约通过Websocket订阅最新成交
    public static final String SWAP_WEBSOCKET_LASTESTTRADE_URL = "wss://futuresws.f4mes.com/kline-api/ws";
    //    合约通过Websocket订阅最新成交
    public static final String SWAP_WEBSOCKET_HISTORYKLINE_URL = "wss://futuresws.f4mes.com/kline-api/ws";
    //    合约通过Websocket订阅最新成交
    public static final String SWAP_WEBSOCKET_TRANSACTION_RECORD_URL = "wss://futuresws.f4mes.com/kline-api/ws";


    /**
     * 调用OpenAPI
     */
    //    获取合约订单簿
    public static final String SWAP_OPENAPI_ORDERBOOK = "https://api.toobit.com/fapi/v1/depth?contractName={0}";
    //      获取合约行情Ticker
    public static final String SWAP_OPENAPI_QuotesTicker = "https://api.toobit.com/fapi/v1/ticker?contractName={0}";
    //    获取行情/标记价格
    public static final String SWAP_OPENAPI_PRICE = "https://api.toobit.com/fapi/v1/index?contractName={0}";
    //    获取K线/
    // 方案A：统一使用 quote 公共行情接口，symbol=转换后的合约标识（如 CARV-SWAP-USDT -> CARVUSDT）
    public static final String SWAP_OPENAPI_KLINE = "https://api.toobit.com/quote/v1/klines?symbol={0}&interval={1}&limit={2}";






}
